<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html lang="en">
<head>
<base href="<%=basePath%>">
<s:head theme="simple" />
<meta charset="utf-8" />
<title>RSC - index</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="stilearning" />

<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/bootstrap-responsive.css" rel="stylesheet" />
<link href="css/stilearn.css" rel="stylesheet" />
<link href="css/stilearn-responsive.css" rel="stylesheet" />
<link href="css/stilearn-helper.css" rel="stylesheet" />
<link href="css/stilearn-icon.css" rel="stylesheet" />
<link href="css/font-awesome.css" rel="stylesheet" />
<link href="css/animate.css" rel="stylesheet" />
<link href="css/uniform.default.css" rel="stylesheet" />

<link href="css/select2.css" rel="stylesheet" />
<link href="css/fullcalendar.css" rel="stylesheet" />
<link href="css/bootstrap-wysihtml5.css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
	<!-- section header -->
	<jsp:include page="courier_head.jsp" />

	<!-- section content -->
	<section class="section">
		<div class="row-fluid">
			<!-- span side-left -->
			<jsp:include page="admin_left.jsp" />
			<!-- span side-left -->

			<!-- span content -->
			<div class="span11">
				<!-- content -->
				<div class="content">
					<!-- content-header -->
					<div class="content-header">
						<ul class="content-header-action pull-right">

						</ul>
						<h2>
							<i class="icofont-home"></i>所有邮差
						</h2>
					</div>
					<!-- /content-header -->

					<!-- content-body -->
					<div class="content-body">
						<!-- dashboar -->
						<!--datatables-->
						<div class="row-fluid">
							<div class="span12">
								<div class="box corner-all">
									<div class="box-header grd-white corner-top">
										<span></span>
									</div>
									<div class="box-body">
										<table id="datatables"
											class="table table-bordered table-striped responsive">
											<thead>
												<tr>
													<th>&nbsp</th>
													<th>工号</th>
													<th>名称</th>
													<th>联系电话</th>
													<th>邮箱</th>
													<th>权限</th>
													<th>基本工资</th>
												</tr>
											</thead>
											<tbody>
												<s:iterator value="couriers" id="courier" status="index">
													<tr class="odd gradeX">
														<td><s:property value="#index.index+1" />
														<td><s:property value="id" /></td>
														<td><s:property value="name" /></td>
														<td><s:property value="tel" /></td>
														<td><s:property value="email" /></td>
														<td>
														<s:if test="permission==0">管理员</s:if>
														<s:else>普通邮差</s:else>
														<td><s:property value="salary" /></td>
													</tr>
												</s:iterator>
											</tbody>
										</table>
									</div>
									<!-- /box-body -->
								</div>
								<!-- /box -->
							</div>
							<!-- /span -->
						</div>
						<!--/datatables-->
						<div class="divider-content">
							<span></span>
						</div>
						<!-- tab resume content -->
						<div class="row-fluid">
							<!-- tab resume update -->
							<div class="span6"></div>
							<!-- tab resume update -->
							<div class="span6"></div>
						</div>
						<!-- tab stat -->
					</div>
					<!--/content-body -->
				</div>
				<!-- /content -->
			</div>
			<!-- /span content -->
		</div>
	</section>

	<!-- section footer -->
	<footer>
		<a rel="to-top" href="#top"><i class="icofont-circle-arrow-up"></i>
		</a>
	</footer>

	<!-- javascript
        ================================================== -->
	<script src="js/jquery.js"></script>
	<script src="js/jquery-ui.min.js"></script>
	<script src="js/bootstrap.js"></script>
	<script src="js/uniform/jquery.uniform.js"></script>

	<script src="js/datatables/jquery.dataTables.min.js"></script>
	<script src="js/datatables/extras/ZeroClipboard.js"></script>
	<script src="js/datatables/extras/TableTools.min.js"></script>
	<script src="js/datatables/DT_bootstrap.js"></script>
	<script src="js/responsive-tables/responsive-tables.js"></script>

	<!-- required stilearn template js, for full feature-->
	<script src="js/holder.js"></script>
	<script src="js/stilearn-base.js"></script>

	<script type="text/javascript">
		$(document).ready(
						function() {
							// try your js

							// uniform
							$('[data-form=uniform]').uniform();

							// datatables
							$('#datatables')
									.dataTable(
											{
												"sDom" : "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
												"sPaginationType" : "bootstrap",
												"oLanguage" : {
													"sLengthMenu" : "_MENU_ records per page"
												}
											});

							// datatables table tools
							$('#datatablestools')
									.dataTable(
											{
												"sDom" : "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
												"oTableTools" : {
													"aButtons" : [
															"copy",
															"print",
															{
																"sExtends" : "collection",
																"sButtonText" : 'Save <span class="caret" />',
																"aButtons" : [
																		"xls",
																		"csv",
																		{
																			"sExtends" : "pdf",
																			"sPdfOrientation" : "landscape",
																			"sPdfMessage" : "Your custom message would go here."
																		} ]
															} ],
													"sSwfPath" : "js/datatables/swf/copy_csv_xls_pdf.swf"
												}
											});
						});
						
						
						
	</script>
</body>
</html>
